<%@page import="com.sjyy.hospital.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<rapid:override name="head">
	<title>Hospital信息</title>
</rapid:override>

<rapid:override name="content">
	<form:form modelAttribute="hospital"  >
		<input type="button" value="返回列表" onclick="window.location='${ctx}/hospital'"/>
		<input type="button" value="后退" onclick="history.back();"/>
		
		<input type="hidden" id="hospitalId" name="hospitalId" value="${hospital.hospitalId}"/>
	
		<table class="formTable">
			<tr>	
				<td class="tdLabel">城市</td>	
				<td>
				<select class="form-field col-2" value="${hospital.areaId}" name="areaId" id="areaId" disabled="disabled">
					<option value="">全部</option>
					<c:forEach items="${areaIdList}" var="item">								
						<option value="${item.key }" 
						<c:if test="${item.key eq hospital.areaId}">
							selected="selected"
						</c:if>
						>${item.value }</option>
					</c:forEach>						
				</select>
				</td>
			</tr>
			<tr>	
				<td class="tdLabel">级别</td>	
				<td>
				<select class="form-field col-2" value="${hospital.level}" name="level" id="level" disabled="disabled">
						<option value="0">全部</option>
					<option value="1" <c:if test="${hospital.level == 1}"> selected </c:if>>一级</option>
					<option value="2" <c:if test="${hospital.level == 2}"> selected </c:if>>二级</option>
					<option value="3" <c:if test="${hospital.level == 3}"> selected </c:if>>三级</option>
					<option value="4" <c:if test="${hospital.level == 4}"> selected </c:if>>社区</option>	
					<option value="5" <c:if test="${hospital.level == 5}"> selected </c:if>>诊所</option>				
				</select>
				</td>
			</tr>
			<tr>	
				<td class="tdLabel">名称</td>	
				<td><c:out value='${hospital.name}'/></td>
			</tr>
			<tr>	
				<td class="tdLabel">类型</td>	
				<td>
					<select class="form-field col-2" value="${hospital.type}" name="type" id="type" disabled="disabled">
					<option value="0">全部</option>
					<option value="1" <c:if test="${hospital.type == 1}"> selected </c:if>>国营</option>
					<option value="2" <c:if test="${hospital.type == 1}"> selected </c:if>>私营</option>
				</select>
				</td>
			</tr>
			
			<tr>	
				<td class="tdLabel">是否运营</td>	
				<td>
				<select class="form-field col-2"  value="${hospital.status}" name="status" id="status" disabled="disabled">
					<option value="0">全部</option>
					<option value="1" <c:if test="${hospital.status == 1}"> selected </c:if>>运营中</option>
					<option value="2" <c:if test="${hospital.status == 2}"> selected </c:if>>停止运营</option>
				</select>
				</td>
			</tr>
			
			<tr>	
				<td class="tdLabel">概述</td>	
				<td>
				<form:textarea value="${hospital.summary}" path="summary" id="summary" cssClass="" cols="30" rows="5" />
				</td>
			</tr>
		</table>
	</form:form>
</rapid:override>

<%@ include file="base.jsp" %>